<template>
  <div class="search-container">
    <div class="search-title">
      <span>搜索</span>
    </div>
    <div class="search-box">
      <van-search
        :show-action="false"
        ref="search"
        left-icon="none"
        v-model="value"
        placeholder="请输入商家或美食名称"
      />
      <!-- <van-icon name="cross" /> -->
      <van-button class="searchbtn" color="#0a92e7">提交</van-button>
    </div>
  </div>
</template>

<script>
import { ref } from 'vue'
// import allFootVue from '@/components/allFoot.vue'
export default {
  name: 'wmSearch',
  setup () {
    const serach = ref(null)
    const value = ref('')

    return {
      serach,
      value
    }
  }
  // components: {
  //   allFootVue
  // }
}
</script>

<style scoped lang="less">
body {
  background-color: #f5f5f5;
}
 .search-container {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  .search-title{
    width: 100%;
    height: 1.087rem;
    font-size: 0.5314rem;
    background-color: #0a92e7;
    text-align: center;
    line-height: 1.087rem;
    color: #fff;
  }
 .search-box {
  position: relative;
  width: 100%;
  height: 1.4251rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  :deep(.van-search__content) {
    padding: 0;
  }
 }
 .searchbtn {
  width: 1.7319rem;
  height: 0.8500rem;
 }
 .van-search {
  padding: 0.2700rem 0.1932rem;
 }
 /deep/ .van-field__control {
  display: flex;
    width: 7.4089rem;
    height: 0.8454rem;
}
::placeholder {
  font-size: 0.3382rem;
  font-weight: 700;
}
}
</style>
